#ifndef LOGINMANAGE_H
#define LOGINMANAGE_H

#include <QDialog>
#include "loginDB.h"
#include "loginUser.h"
#include "dialog_login.h"

namespace Ui {
class LoginManage;
}

class LoginManage : public QDialog
{
    Q_OBJECT

public:
    explicit LoginManage(QWidget *parent = 0);
    ~LoginManage();

    void setParent(Dialog_Login *login);

    LoginUser *getUser() const;

private slots:
    void on_pushButton_add_user_clicked();

    void on_pushButton_del_user_clicked();

    void on_pushButton_cancel_clicked();

    void on_pushButton_update_clicked();

private:
    Ui::LoginManage *ui;
    Dialog_Login *dlogin;
    LoginUser *user;
};

#endif // LOGINMANAGE_H
